import tkinter
import turtle

win = tkinter.Tk()
win.title('This is My TK procedure')
win.geometry('800x600')

def callback():
    print('wwww')
Bu1 = tkinter.Button(win,text='command 命令',command = callback)
Bu1.pack()



def hudie():
    print('花蝴蝶')


canvas = tkinter.Canvas(win)
canvas.bind('<KeyPress-A>',hudie)

win.mainloop()